import Button from "components/Base/Button";
import Icon from "components/Base/Icon";
import DataTable from "components/Base/DataTable";
import {getBpDeviceType} from "../../../../models/deviceType";
import moment from "moment";

export default (self) => [
  {
    title: 'id',
    name: 'id',
    formItem: {
      type: 'hidden'
    },
  },
  {
    title: '设备ID',
    name: 'deviceId',
    tableItem: {align: 'center',},
    formItem: {
      rules: [
        {
          required: true,
          message: '请输入设备ID'
        }
      ]
    },
  },
  {
    title: '病人Id',
    name: 'patientId',
    tableItem: {align: 'center',},
    formItem: {}
  },
  {
    title: '血氧',
    name: 'spo',
    tableItem: {align: 'center',},
    formItem: {
      rules: [
        {
          required: true,
          message: '请输入spo'
        }
      ]
    },
  },
  {
    title: '心率',
    name: 'heart',
    tableItem: {align: 'center',},
    formItem: {
      rules: [
        {
          required: true,
          message: '请输入heart'
        }
      ]
    },
  },

  {
    title: '时间',
    name: 'time',
    tableItem: {
      sorter: true,
      align: 'center',
    },
    formItem: {
      type: 'date',
      showTime: true,
      initialValue: moment(),
      rules: [
        {
          required: true,
          message: '请输入date'
        }
      ]
    },
  },
]
